package com.ophiux.cs.infrastructure.compoment.basedata.mybatis;

import java.util.List;
import java.util.Map;

import com.ophiux.cs.infrastructure.compoment.basedata.mybatis.handler.DataHandler;


public interface DataComponent
{

	  /**
	   * 
	   * Description: 插入一条数据<br>
	   * @param paramString
	   * @param paramObject
	   * @return
	   */
	  public abstract int insertData(String paramString, Object paramObject);
	  /**
	   * 
	   * Description:更新一条数据 <br>
	   * @param paramString
	   * @param paramObject
	   * @return int
	   */
	  public abstract int updateData(String paramString, Object paramObject);
	  /**
	   * 
	   * Description: 删除一条数据<br>
	   * @param paramString
	   * @param paramObject
	   * @return int
	   */
	  public abstract int deleteData(String paramString, Object paramObject);
      /**
       * 
       * Description: 根据id获得数据<br>
       * @param paramString
       * @param paramObject
       * @return Map
       */
	  public abstract Map getDataByID(String paramString, Object paramObject);
	  /**
	   * 
	   * Description:查询一条数据 <br>
	   * @param paramString
	   * @param paramObject
	   * @return
	   */
	  public abstract Object getObject(String paramString, Object paramObject);
	  /**
	   * 
	   * Description:查询数据列表 <br>
	   * @param paramString
	   * @param paramObject
	   * @return
	   */
	  public abstract List getData(String paramString, Object paramObject);
	  /**
	   * 
	   * Description:创建Handler<br>
	   * @param paramObject
	   * @return
	   */
	  public abstract DataHandler createDataHandler(Object paramObject);
	  /**
	   * 
	   * Description:执行  Handler<br>
	   * @param paramDataHandler
	   */
	  public abstract void executeBatch(DataHandler paramDataHandler);
	  /**
	   * 
	   * Description: 批量伤处数据<br>
	   * @param paramString
	   * @param paramObject
	   */
	  public abstract void deleteDataBatch(String paramString, Object paramObject);


}
